import request from '@/utils/request'

// 查询物资库存列表
export function listMaterielInventory(query) {
  return request({
    url: '/hospital/MaterielInventory/list',
    method: 'get',
    params: query
  })
}

// 查询物资库存详细
export function getMaterielInventory(id) {
  return request({
    url: '/hospital/MaterielInventory/' + id,
    method: 'get'
  })
}

// 新增物资库存
export function addMaterielInventory(data) {
  return request({
    url: '/hospital/MaterielInventory',
    method: 'post',
    data: data
  })
}

// 修改物资库存
export function updateMaterielInventory(data) {
  return request({
    url: '/hospital/MaterielInventory',
    method: 'put',
    data: data
  })
}

// 删除物资库存
export function delMaterielInventory(id) {
  return request({
    url: '/hospital/MaterielInventory/' + id,
    method: 'delete'
  })
}
